-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP un-ignore application/Database/Migrations directory from .gitignore #1455
WIP un-ignore application/Database/Migrations directory from .gitignore #1455
Conversation
I think you are correct, but we then need to modify the migration testing so it doesn't generate a ton of migration files there, that remain behind and get propagated to the community. Maye it should be using VFS for the test files. |
@jim-parry I've updated test in |
We'll give it a whirl :) |
Won't your change remove al the migrations in application/Database/Migrations? |
Yes, the current solution is run on |
ac95cc1
to
b60cc35
Compare
b60cc35
to
9c73d4a
Compare
@jim-parry I've updated the tests to only remove migration file that created via test so it won't remove another existing migration files if any. |
Looks like a good solution for now, thanks. |
I may have spoken too soon. Looking at the migration docs, migrations are created with a timestamp-based name if the "type" preference is "timestamp". That would create migrations starting with "2", eg. 20181119..., which is the set you git ignore. So we can't git ignore them :-/ |
If SessionsCommandsTest deletes all the ones that it creates, we are good. Testing here. |
Oops - misread your change to .gitignore ... you don't keep them around. All is good :) and it tests fine. |
When developer create a migration files, they can commit and share it with other developers. So, I think it should be removed from .gitignore.
Checklist: